# -*- coding: utf-8 -*-

from django.conf.urls.defaults import *

urlpatterns = patterns('apps.accounts.views',
        url(r'^signup$' ,                               'signup' , name='account_signup') ,
        url(r'^signup/(?P<invite_code>[A-Za-z0-9]*)$' , 'signup' , name='account_signup') ,

        url(r'^login$'  ,                'login'  , name='account_login')  ,
        url(r'^logout$' ,                'logout' , name='account_logout') ,

        url(r'^forgot$'   , 'forgot_password' , name='account_password_forgot') ,
        url(r'^password$' , 'change_password' , name='account_password_change') ,
        url(r'^image$'    , 'change_image'    , name='account_image_change')    ,

        url(r'^password/reset/([A-Za-z0-9]{128})$', 'reset_password', name='account_password_reset'),
        url(r'^email/validate/([A-Za-z0-9]{25})$',  'validate_email', name='account_validate_email'),

        ## Public profile images
        url(r'^(?P<username>\w+)/profile\.jpg$',                     'public_image' , name='account_image_public'),
        url(r'^(?P<username>\w+)/(?P<is_thumb>thumb/)profile\.png$', 'public_image' , name='account_image_public_thumb'),

        url(r'^settings$', 'settings', name='account_settings'),

        url(r'^$',               'profile', name='account_profile'),
        url(r'^(?P<member>\w+)$','profile', name='account_profile'),
        
        url(r'^available$', 'is_available' , name='account_availability'),
)
